row reduction method